<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <link rel="stylesheet" href="./css/index.css">
    <title>2021少数民族传统体育竞技</title>
</head>

<body>
    <div class="layout container">
        <img src="./img/loading.gif" alt="" class="loading">
        <!-- 背景图片 -->
        <img src="http://qrwbtqqjh.hn-bkt.clouddn.com/21.png" alt="" class="bg-img">
        <div class="top-btn-box">
            <span class="other-img top-text ranking">游戏排行</span>
            <span class="other-img top-text gift">我的奖品</span>
        </div>
        <img src="./img/game1_1.png" alt="" class="title-img">
        <img src="./img/game1_6.png" alt="" class="other-img start-btn">
        <span class="other-img rule-btn">游戏规则</span>
        <!-- <img src="./img/game1_5.png" alt="" class="other-img rule-btn"> -->
        <img src="./img/game1_3.png" alt="" class="other-img introduce-img">
        <p class="tips">海南省民族宗教事务委员会 出品</p>
    </div>
    <div id="preload-many"></div>
    <script src="./js/jquery.js"></script>
    <script src="https://res2.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
    <script src="./js/sprite.js"></script>
    <script src="./js/request.js"></script>
    <script src="./js/util.js?t-123"></script>
    <script>
        (async function isWechat() {
            var ua = window.navigator.userAgent.toLowerCase();
            if (ua.match(/micromessenger/i) == 'micromessenger') {
                wxAuthorize();
                //获取分数相关信息
                return true;
            } else {
                return false;
            }
        })()
        if (localStorage.token) {
            request('share_help/', {
                zm_token: localStorage.user_token,
                _zm_post_type: 'ajax',
                share_token: localStorage.token || '',
                item_type: localStorage.type || '',
            }).then(() => {
                localStorage.token = ''
                localStorage.type = ''
            })
        }
        if (localStorage.number = 1) {
            $('.loading').hide()
        } else {
            $('.other-img').hide()
            $('.tips').hide()
            let progressNumber = 0
            let timer = setInterval(() => {
                progressNumber++
                $('.loading').attr('value', progressNumber)
                if (progressNumber == 100) {
                    clearInterval(timer)
                    $('.loading').hide()
                    $('.other-img').show()
                    $('.tips').show()
                    localStorage.setItem('number', 1)
                }
            }, 70)
        }

        $('.start-btn').on('click', function () {
            location.href = 'http://youxi.haiqikj.com/chooseGame.html'

            // ---------------
        })
        $('.introduce-img').on('click', function () {
            location.href = 'http://youxi.haiqikj.com/introduce.html'
        })

        $('.rule-btn').on('click', function () {
            location.href = 'http://youxi.haiqikj.com/explain.html'
        })

        $('.ranking').on('click', function () {
            location.href = 'http://youxi.haiqikj.com/ranking.html'
        })

        $('.gift').on('click', function () {
            location.href = 'http://youxi.haiqikj.com/myGift.html'
        })
    </script>

</body>

</html>